package club.gskj.gulimall.order.dao;

import club.gskj.gulimall.order.entity.OrderEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 订单
 *
 * @author 康纳-connor
 * @email 2417039231@gmail.com
 * @date 2021-03-27 16:26:19
 */
@Mapper
public interface OrderDao extends BaseMapper<OrderEntity> {

    /**
     * 根据订单号修改订单状态
     *
     * @param out_trade_no 订单号
     * @param code         状态值
     */
    void updateOrderStatus(@Param("out_trade_no") String out_trade_no, @Param("code") Integer code);
}
